/**
 * 日期练习
 * yyyy年MM月dd日 hh时mm分ss秒
 */

function formatDate(date,format){
   
    var year = date.getFullYear().toString().padStart(2,'0');
    var month = (date.getMonth()+1).toString().padStart(2,'0');
    var day = date.getDate();
    var hour = date.getHours();

    var minute = date.getMinutes();
    var second = date.getSeconds();

    }